package com.health.model;

import java.util.Date;

/*******************************************************************************
 * BloodSugar Entity Class
 ******************************************************************************/
public class BloodSugar
{
	private String	id;
	private String	userId;
	// the value of blood sugar
	private Float	value;
	/** 0:before meal 1:after meal* */
	private String	atMeal;
	private Date	examTime;
	/** this field is added to be used to shuffle the java.util.Date's time part */
	//private String	additionalTime;	// only in ActionForm class
	private String	remarks;

	// query conditions
	private Float	value1;
	private Float	value2;
	private Date	examTimeStart;
	private Date	examTimeEnd;

	// about paging parameters
	private Integer	start;
	private Integer	limit;

	/***************************************************************************
	 * constructors
	 **************************************************************************/
	public BloodSugar()
	{}

	/***************************************************************************
	 * constructors
	 **************************************************************************/
	public BloodSugar(String id, String userId, float value, String atMeal,
			Date examTime, String remarks)
	{
		super();
		this.id = id;
		this.userId = userId;
		this.value = value;
		this.atMeal = atMeal;
		this.examTime = examTime;
		this.remarks = remarks;
	}

	/***************************************************************************
	 * getters and setters
	 **************************************************************************/
	public String getId()
	{
		return id;
	}

	public void setId(String id)
	{
		this.id = id;
	}

	public String getUserId()
	{
		return userId;
	}

	public void setUserId(String userId)
	{
		this.userId = userId;
	}

	public Float getValue()
	{
		return value;
	}

	public void setValue(Float value)
	{
		this.value = value;
	}

	public String getAtMeal()
	{
		return atMeal;
	}

	public void setAtMeal(String atMeal)
	{
		this.atMeal = atMeal;
	}

	public Date getExamTime()
	{
		return examTime;
	}

	public void setExamTime(Date examTime)
	{
		this.examTime = examTime;
	}

	public String getRemarks()
	{
		return remarks;
	}

	public void setRemarks(String remarks)
	{
		this.remarks = remarks;
	}

	public Float getValue1()
	{
		return value1;
	}

	public void setValue1(Float value1)
	{
		this.value1 = value1;
	}

	public Float getValue2()
	{
		return value2;
	}

	public void setValue2(Float value2)
	{
		this.value2 = value2;
	}

	public Date getExamTimeStart()
	{
		return examTimeStart;
	}

	public void setExamTimeStart(Date examTimeStart)
	{
		this.examTimeStart = examTimeStart;
	}

	public Date getExamTimeEnd()
	{
		return examTimeEnd;
	}

	public void setExamTimeEnd(Date examTimeEnd)
	{
		this.examTimeEnd = examTimeEnd;
	}

	public Integer getStart()
	{
		return start;
	}

	public void setStart(Integer start)
	{
		this.start = start;
	}

	public Integer getLimit()
	{
		return limit;
	}

	public void setLimit(Integer limit)
	{
		this.limit = limit;
	}

//	public String getAdditionalTime()
//	{
//		return additionalTime;
//	}
//
//	public void setAdditionalTime(String additionalTime)
//	{
//		this.additionalTime = additionalTime;
//	}

}
